Skip to content

Fix e2e workflow to exclude issue creation and comment tests from scheduled runs#360

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-3942be9a-a80d-4a99-85d8-2e87d13bc2bc
Sep 22, 2025
Merged

Fix e2e workflow to exclude issue creation and comment tests from scheduled runs#360
pelikhan merged 2 commits into
mainfrom
copilot/fix-3942be9a-a80d-4a99-85d8-2e87d13bc2bc

Conversation

Copilot AI commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Problem

The nightly e2e workflow was running all test suites including issue creation and comment variations during scheduled runs at 3:00 AM UTC. This was causing unnecessary resource usage and potential interference with the repository during automated nightly testing.

Solution

Added conditional logic to the e2e job in .github/workflows/e2e.yml to exclude specific test suites when triggered by the schedule event:

if: ${{ !(github.event_name == 'schedule' && (matrix.test-suite.name == 'issue-triggered' || matrix.test-suite.name == 'command-triggered')) }}

Behavior Changes

Event Type workflow-dispatch issue-triggered command-triggered
schedule (nightly) ✅ Runs ❌ Skipped ❌ Skipped
workflow_dispatch (manual) ✅ Runs ✅ Runs ✅ Runs
push (code changes) ✅ Runs ✅ Runs ✅ Runs

The nightly scheduled runs will now only execute the workflow-dispatch test suite (Direct workflow triggers), while manual triggers and code changes continue to run the full test matrix including issue creation and comment tests.

Testing

  • ✅ YAML syntax validated
  • ✅ Conditional logic tested with all event/test-suite combinations
  • ✅ Security validation passed with CodeQL
  • ✅ Minimal change approach (single line addition)

This change reduces the scope of nightly automated testing while preserving full test coverage for manual runs and CI validation on code changes.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…schedule events

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update e2e.yml so that the issue creation and comment variations do not run for the "schedule" event. Fix e2e workflow to exclude issue creation and comment tests from scheduled runs Sep 22, 2025
Copilot AI requested a review from pelikhan September 22, 2025 22:39
@pelikhan pelikhan marked this pull request as ready for review September 22, 2025 22:41
@pelikhan pelikhan merged commit 526ebb2 into main Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants